package com.appbee.core.client.upload;

import com.google.gwt.core.client.JavaScriptObject;

public class XMLHttpRequestUpload extends JavaScriptObject
{
	protected XMLHttpRequestUpload(){}
	
	public final native void addErrorHandler(UploadErrorHandler handler,boolean b) /*-{
															var c = $entry(function(e) {
															handler.@com.appbee.core.client.upload.UploadErrorHandler::onError(Ljava/lang/String;)(e);
															});
															this.addEventListener("error",c,b);
															}-*/;

	public final native void addEventListener(	String type,
												UploadHandler handler,
												boolean b)
	/*-{
		var c = $entry(function(e) {
		handler.@com.appbee.core.client.upload.UploadHandler::onUpload(Lcom/appbee/core/client/upload/ProgressEvent;)(e);
		});
		this.addEventListener(type,c,b);
	}-*/;
}
